package com.elvin.platform.beans;

import lombok.Data;

import java.util.TreeMap;

@Data
public class TemplateMsg {
    private  String appid ;
    private  String template_id ;
    private  String url ;
    private Miniprogram miniprogram;
    /**
     * data数据
     */
    private TreeMap<String, TreeMap<String, String>> data;
    /**
     * 参数
     *
     * @param value 值
     * @param color 颜色 可不填
     * @return params
     */
    public static TreeMap<String, String> item(String value, String color) {
        TreeMap<String, String> params = new TreeMap<String, String>();
        params.put("value", value);
        params.put("color", color);
        return params;
    }
    }
